﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WindowsFormsView;

namespace WindowsFormsPresenter.District
{
    public class DistrictsPresenter : Presenter<IDistrictsView>
    {
        public DistrictsPresenter(IDistrictsView view)
            : base(view)
        {
        }

        public void Display()
        {
            View.Districts = Model.GetDistricts();
        }

        public void DisplayByPage(int currentPage)
        {
            View.Districts = Model.GetDistrictsByPage(currentPage);
        }

        public int GetTotalPage()
        {
            return Model.GetTotalPageFromDistrict();
        }

        public void DisplayActive()
        {
            View.Districts = Model.GetDistrictsActive();
        }
    }
}
